import render from "./render.js";
import loadata from "./loadata.js";

function Nav() {}

$.extend(Nav.prototype, {
    init() {
        var $main_category_list = $(".main-category-list");

        loadata.navLoad().then(function(res) {
            var html_1 = render.init(res.data, "nav_first_list");

            $main_category_list.html(html_1);
        });
    }
})

export default new Nav();